<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <!--<title>首页</title>-->
    <link rel="stylesheet" type="text/css" href="__CSS__/api.css"/>
    <link rel="stylesheet" type="text/css" href="__CSS__/tt.css"/>
    <link rel="stylesheet" type="text/css" href="__CSS__/swiper4.min.css"/>
    <style>
        .lii,.top_name_left,.top_name,.top_name_r{
            cursor: pointer;
        }
        img{
            object-fit: cover;
        }
        .aui-ellipsis-1 {
            display: -webkit-box;
            overflow: hidden;
            text-overflow: ellipsis;
            word-wrap: break-word;
            word-break: break-all;
            white-space: normal !important;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
        }
    </style>
<div class="top">
    <div class="top_box flex-wrap">
        <div class="top_name_left" style="background: url('__IMG__/logo.png') no-repeat center center;background-size:100% 100%;width: 50px;height: 50px;"></div>
        <div class="top_name" onclick="location.href='{:url('home/Index/index')}'">
            置家优选
        </div>
        <div class="top_name_r" onclick="window.location.href = '/home/Index/position';">
            <img src="__IMG__/ion.png" alt="">
            <span id="location_my" style="overflow: hidden">{$Think.session.my_location_city_name}</span>
        </div>
        <div class="flex-con"></div>
        <div class="lii" {eq name='$Request.controller' value='Listzu'}style="color:rgba(255,255,255,1);"{/eq} onclick="location.href='{:url('home/Listzu/homePage')}'">
            租房
        </div>
        <div class="lii" {eq name='$Request.controller' value='Listxin'}style="color:rgba(255,255,255,1);"{/eq} onclick="location.href='{:url('home/Listxin/homePage')}'">
            新房
        </div>
        <div class="lii" {eq name='$Request.controller' value='Lister'}style="color:rgba(255,255,255,1);"{/eq} onclick="location.href='{:url('home/Lister/homePage')}'">
            二手房
        </div>
        <div class="lii" {eq name='$Request.controller' value='Build'}style="color:rgba(255,255,255,1);"{/eq} onclick="location.href='{:url('home/Build/homePage')}'">
            最新楼盘
        </div>
        <div class="lii" {eq name='$Request.controller' value='Jisuan'}style="color:rgba(255,255,255,1);"{/eq} onclick="location.href='{:url('home/Jisuan/homePage')}'">
            计算器
        </div>
        <div class="lii" {eq name='$Request.controller' value='Renovation'}style="color:rgba(255,255,255,1);"{/eq} onclick="location.href='{:url('home/Renovation/index')}'">
            我要装修
        </div>
        <div class="lii" {eq name='$Request.controller' value='Economic'}style="color:rgba(255,255,255,1);"{/eq} onclick="location.href='{:url('home/Economic/index')}'">
            推荐经纪人
        </div>
        <div class="lii" {eq name='$Request.controller' value='Release'}style="color:rgba(255,255,255,1);"{/eq} onclick="location.href='{:url('home/Release/newHouse')}'">
            我要发布
        </div>
        <div class="lii" {eq name='$Request.controller' value='News'}style="color:rgba(255,255,255,1);"{/eq} onclick="location.href='{:url('home/News/Index')}'">
            系统消息
        </div>
    {if $Think.session.user_id}
        <div class="top_login">
            <img src="{$Think.session.user_image}" alt="">
            <span onclick="location.href='{:url('home/User/index')}'" style="cursor: pointer">{$Think.session.user_username}</span>
            <span onclick="location.href='{:url('home/Login/loginOut')}'" style="cursor: pointer;margin-left: 20px;">退出</span>
        </div>
    {else /}
    <div class="top_login">
        <img src="__IMG__/logo.png" alt="">
        <span onclick="location.href='{:url('home/Login/indexLogin')}'" style="cursor: pointer">未登录</span>
        <span onclick="location.href='{:url('home/Login/indexLogin')}'" style="cursor: pointer;margin-left: 20px;">登录</span>
    </div>
    {/if}
    </div>
</div>
</head>